#include <iostream>
#include <cstdio>
#include <algorithm>
using namespace std;
int main()
{
    int a,b, c;
    cin >> a >> b;
    c = a - b;
    if (c == -1 || c == 1)
    {
        if (c == -1)
            cout << 'a';
        else
            cout << 'b';
    }
    else if (c == -2 || c == 2)
    {
        if (c == -2)
            cout << 'b';
        else
            cout << 'a';
    }
    else
        cout << 'p';
    return 0;
}